package com.yoga.manager.app;

import com.yoga.common.appexception.AppException;
import com.yoga.common.bo.PlainVipBO;

/**
 * Created by hdx on 2020/9/26.
 */
public interface AppPlainVipManager {
    /**
     * 根据用户id获取vip信息，所有获取用户vip信息都走此方法
     * @param yogaUserId
     * @return
     * @throws AppException
     */
    PlainVipBO getPlainVipByUserId(Long yogaUserId) throws AppException;

    /**
     * 判断用户是否时vip,是vip返回true，不是返回false
     * @param yogaUserId
     * @return
     * @throws AppException
     */
    Boolean getIsPlainVIP(Long yogaUserId) throws AppException;
}
